<?php

namespace Common\Model;

/**
 * AdminInfoModel.class.php实例模型
 * 
 * @author songanwei
 * @date 2016-1-8
 */
class AdminInfoModel extends BaseModel {

    protected $trueTableName = 'tb_admin_info';

    /**
     * 添加数据
     * @modify songanwei 2016-01-08
     * @param integer $userId  用户ID
     * @param string $headpath  用户头像
     * @return type
     */
    public function addInfo($userId, $headPath = '/Public/src/Home/image/user.png') {
        $options = array(
            'adminlogin_id' => $userId,
            'headpath' => $headPath
        );
        return $this->add($options);
    }

}
